Optimal. Leaf size=87 \[ \frac {2 \sqrt [4]{-1} a \tanh ^{-1}\left (\frac {(-1)^{3/4} \sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{d^{5/2} f}-\frac {2 a}{3 d f (d \tan (e+f x))^{3/2}}+\frac {2 i a}{d^2 f \sqrt {d \tan (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 87, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.115, Rules used = {3610, 3614,
214} \begin {gather*} \frac {2 \sqrt [4]{-1} a \tanh ^{-1}\left (\frac {(-1)^{3/4} \sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{d^{5/2} f}+\frac {2 i a}{d^2 f \sqrt {d \tan (e+f x)}}-\frac {2 a}{3 d f (d \tan (e+f x))^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 214
Rule 3610
Rule 3614
Rubi steps
\begin {align*} \int \frac {a-i a \tan (e+f x)}{(d \tan (e+f x))^{5/2}} \, dx &=-\frac {2 a}{3 d f (d \tan (e+f x))^{3/2}}+\frac {\int \frac {-i a d-a d \tan (e+f x)}{(d \tan (e+f x))^{3/2}} \, dx}{d^2}\\ &=-\frac {2 a}{3 d f (d \tan (e+f x))^{3/2}}+\frac {2 i a}{d^2 f \sqrt {d \tan (e+f x)}}+\frac {\int \frac {-a d^2+i a d^2 \tan (e+f x)}{\sqrt {d \tan (e+f x)}} \, dx}{d^4}\\ &=-\frac {2 a}{3 d f (d \tan (e+f x))^{3/2}}+\frac {2 i a}{d^2 f \sqrt {d \tan (e+f x)}}+\frac {\left (2 a^2\right ) \text {Subst}\left (\int \frac {1}{-a d^3-i a d^2 x^2} \, dx,x,\sqrt {d \tan (e+f x)}\right )}{f}\\ &=\frac {2 \sqrt [4]{-1} a \tanh ^{-1}\left (\frac {(-1)^{3/4} \sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{d^{5/2} f}-\frac {2 a}{3 d f (d \tan (e+f x))^{3/2}}+\frac {2 i a}{d^2 f \sqrt {d \tan (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in
optimal.
time = 0.12, size = 41, normalized size = 0.47 \begin {gather*} -\frac {2 a \, _2F_1\left (-\frac {3}{2},1;-\frac {1}{2};-i \tan (e+f x)\right )}{3 d f (d \tan (e+f x))^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 310 vs. \(2 (70 ) = 140\).
time = 0.10, size = 311, normalized size = 3.57
method | result | size |
derivativedivides | \(-\frac {a \left (\frac {\frac {\left (d^{2}\right )^{\frac {1}{4}} \sqrt {2}\, \left (\ln \left (\frac {d \tan \left (f x +e \right )+\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}{d \tan \left (f x +e \right )-\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )-2 \arctan \left (-\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )\right )}{4 d}-\frac {i \sqrt {2}\, \left (\ln \left (\frac {d \tan \left (f x +e \right )-\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}{d \tan \left (f x +e \right )+\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )-2 \arctan \left (-\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )\right )}{4 \left (d^{2}\right )^{\frac {1}{4}}}}{d^{2}}-\frac {2 i}{d^{2} \sqrt {d \tan \left (f x +e \right )}}+\frac {2}{3 d \left (d \tan \left (f x +e \right )\right )^{\frac {3}{2}}}\right )}{f}\) | \(311\) |
default | \(-\frac {a \left (\frac {\frac {\left (d^{2}\right )^{\frac {1}{4}} \sqrt {2}\, \left (\ln \left (\frac {d \tan \left (f x +e \right )+\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}{d \tan \left (f x +e \right )-\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )-2 \arctan \left (-\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )\right )}{4 d}-\frac {i \sqrt {2}\, \left (\ln \left (\frac {d \tan \left (f x +e \right )-\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}{d \tan \left (f x +e \right )+\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )-2 \arctan \left (-\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )\right )}{4 \left (d^{2}\right )^{\frac {1}{4}}}}{d^{2}}-\frac {2 i}{d^{2} \sqrt {d \tan \left (f x +e \right )}}+\frac {2}{3 d \left (d \tan \left (f x +e \right )\right )^{\frac {3}{2}}}\right )}{f}\) | \(311\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Both result and optimal contain complex but leaf count of result is larger than
twice the leaf count of optimal. 201 vs. \(2 (72) = 144\).
time = 0.49, size = 201, normalized size = 2.31 \begin {gather*} -\frac {\frac {3 \, a {\left (-\frac {\left (2 i - 2\right ) \, \sqrt {2} \arctan \left (\frac {\sqrt {2} {\left (\sqrt {2} \sqrt {d} + 2 \, \sqrt {d \tan \left (f x + e\right )}\right )}}{2 \, \sqrt {d}}\right )}{\sqrt {d}} - \frac {\left (2 i - 2\right ) \, \sqrt {2} \arctan \left (-\frac {\sqrt {2} {\left (\sqrt {2} \sqrt {d} - 2 \, \sqrt {d \tan \left (f x + e\right )}\right )}}{2 \, \sqrt {d}}\right )}{\sqrt {d}} + \frac {\left (i + 1\right ) \, \sqrt {2} \log \left (d \tan \left (f x + e\right ) + \sqrt {2} \sqrt {d \tan \left (f x + e\right )} \sqrt {d} + d\right )}{\sqrt {d}} - \frac {\left (i + 1\right ) \, \sqrt {2} \log \left (d \tan \left (f x + e\right ) - \sqrt {2} \sqrt {d \tan \left (f x + e\right )} \sqrt {d} + d\right )}{\sqrt {d}}\right )}}{d} - \frac {8 \, {\left (3 i \, a d \tan \left (f x + e\right ) - a d\right )}}{\left (d \tan \left (f x + e\right )\right )^{\frac {3}{2}} d}}{12 \, d f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 394 vs. \(2 (72) = 144\).
time = 0.37, size = 394, normalized size = 4.53 \begin {gather*} -\frac {3 \, {\left (d^{3} f e^{\left (4 i \, f x + 4 i \, e\right )} - 2 \, d^{3} f e^{\left (2 i \, f x + 2 i \, e\right )} + d^{3} f\right )} \sqrt {\frac {4 i \, a^{2}}{d^{5} f^{2}}} \log \left (-\frac {{\left ({\left (d^{2} f e^{\left (2 i \, f x + 2 i \, e\right )} + d^{2} f\right )} \sqrt {\frac {-i \, d e^{\left (2 i \, f x + 2 i \, e\right )} + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt {\frac {4 i \, a^{2}}{d^{5} f^{2}}} + 2 i \, a\right )} e^{\left (-2 i \, f x - 2 i \, e\right )}}{d^{2} f}\right ) - 3 \, {\left (d^{3} f e^{\left (4 i \, f x + 4 i \, e\right )} - 2 \, d^{3} f e^{\left (2 i \, f x + 2 i \, e\right )} + d^{3} f\right )} \sqrt {\frac {4 i \, a^{2}}{d^{5} f^{2}}} \log \left (\frac {{\left ({\left (d^{2} f e^{\left (2 i \, f x + 2 i \, e\right )} + d^{2} f\right )} \sqrt {\frac {-i \, d e^{\left (2 i \, f x + 2 i \, e\right )} + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt {\frac {4 i \, a^{2}}{d^{5} f^{2}}} - 2 i \, a\right )} e^{\left (-2 i \, f x - 2 i \, e\right )}}{d^{2} f}\right ) + 16 \, {\left (a e^{\left (4 i \, f x + 4 i \, e\right )} - a e^{\left (2 i \, f x + 2 i \, e\right )} - 2 \, a\right )} \sqrt {\frac {-i \, d e^{\left (2 i \, f x + 2 i \, e\right )} + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}}}{12 \, {\left (d^{3} f e^{\left (4 i \, f x + 4 i \, e\right )} - 2 \, d^{3} f e^{\left (2 i \, f x + 2 i \, e\right )} + d^{3} f\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - i a \left (\int \frac {i}{\left (d \tan {\left (e + f x \right )}\right )^{\frac {5}{2}}}\, dx + \int \frac {\tan {\left (e + f x \right )}}{\left (d \tan {\left (e + f x \right )}\right )^{\frac {5}{2}}}\, dx\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.62, size = 109, normalized size = 1.25 \begin {gather*} -\frac {2}{3} \, a {\left (-\frac {3 i \, \sqrt {2} \arctan \left (\frac {8 \, \sqrt {d^{2}} \sqrt {d \tan \left (f x + e\right )}}{-4 i \, \sqrt {2} d^{\frac {3}{2}} + 4 \, \sqrt {2} \sqrt {d^{2}} \sqrt {d}}\right )}{d^{\frac {5}{2}} f {\left (-\frac {i \, d}{\sqrt {d^{2}}} + 1\right )}} + \frac {-3 i \, d \tan \left (f x + e\right ) + d}{\sqrt {d \tan \left (f x + e\right )} d^{3} f \tan \left (f x + e\right )}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 4.62, size = 70, normalized size = 0.80 \begin {gather*} \frac {a\,2{}\mathrm {i}}{d^2\,f\,\sqrt {d\,\mathrm {tan}\left (e+f\,x\right )}}-\frac {2\,a}{3\,d\,f\,{\left (d\,\mathrm {tan}\left (e+f\,x\right )\right )}^{3/2}}+\frac {{\left (-1\right )}^{1/4}\,a\,\mathrm {atan}\left (\frac {{\left (-1\right )}^{1/4}\,\sqrt {d\,\mathrm {tan}\left (e+f\,x\right )}}{\sqrt {d}}\right )\,2{}\mathrm {i}}{d^{5/2}\,f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________